#include "ToThePiNode.h"

#include <math.h>
#include <QDebug>

ToThePiNode::ToThePiNode(Node* node, double sampleValue, bool isObserved) :
    Node(MISC, sampleValue, isObserved),
    node(node)
{

}

ToThePiNode::ToThePiNode(const ToThePiNode& other) :
    Node(other),
    node(other.node)
{

}

ToThePiNode::~ToThePiNode()
{

}

double ToThePiNode::getLastSample()
{
    return pow(node->getLastSample(), M_PI);
}
